<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglib.jsp" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<%@ include file="/common/css.jsp" %>
<%@ include file="/common/javascript.jsp" %>

</head>
<body>

<div class="dtree">
	<script type="text/javascript">
		<!--
		/*
		id, pid and name are required.

		Parameters
		Name	Type	Description		
		id	Number	Unique identity number.
		pid	Number	Number refering to the parent node. The value for the root node has to be -1.
		name	String	Text label for the node.
		url	String	Url for the node.
		title	String	Title for the node.
		target	String	Target for the node.
		icon	String	Image file to use as the icon. Uses default if not specified.
		iconOpen	String	Image file to use as the open icon. Uses default if not specified.
		open	Boolean	Is the node open.
		*/

		var d = new dTree('d',"<c:url value="/resource/images/dtree"/>");

		<c:forEach var="dTree" items="${list}">
			d.add('${dTree.id}','${dTree.pid}','${dTree.name}','${dTree.url}','${dTree.title}','${dTree.target}');
		</c:forEach>

		/*	
		var d = new dTree('d',"/resource/images/dtree");
 		d.add(0,-1,'组织结构');
		d.add(1,0,'管理中心','http://www.baidu.com','管理中心','subMainFrame');
		d.add(2,1,'人力资源部','http://www.baidu.com','人力资源部','subMainFrame');
		d.add(3,1,'采购部','http://www.baidu.com','采购部','subMainFrame');
		d.add(4,1,'流程与信息化部','http://www.baidu.com','流程与信息化部','subMainFrame');
		d.add(5,0,'服务中心','http://www.baidu.com','服务中心','subMainFrame');
		d.add(6,5,'后勤服务部','http://www.baidu.com','后勤服务部','subMainFrame');
		d.add(7,5,'行政部','http://www.baidu.com','行政部','subMainFrame');
		d.add(8,5,'旅游服务部','http://www.baidu.com','旅游服务部','subMainFrame');
		d.add(9,5,'活动中心','http://www.baidu.com','活动中心','subMainFrame');

		d.add(10,0,'总裁办','http://www.baidu.com','总裁办','subMainFrame');
		d.add(11,10,'公共事务部','http://www.baidu.com','公共事务部','subMainFrame');
		d.add(12,10,'驻京办','http://www.baidu.com','驻京办','subMainFrame');
		d.add(13,10,'审计部','http://www.baidu.com','审计部','subMainFrame');
		
		d.add(14,0,'集团投融资中心','http://www.baidu.com','集团投融资中心','subMainFrame');
		d.add(15,14,'集团财务管理部','http://www.baidu.com','集团财务管理部','subMainFrame');
		d.add(16,14,'集团投资管理部','http://www.baidu.com','集团投资管理部','subMainFrame');
		d.add(17,14,'集团综合业务部','http://www.baidu.com','集团综合业务部','subMainFrame');
		d.add(18,14,'集团资金管理部','http://www.baidu.com','集团资金管理部','subMainFrame');
		
		d.add(19,0,'江苏瑞福','http://www.baidu.com','江苏瑞福','subMainFrame');
		d.add(20,19,'市场推广部','http://www.baidu.com','市场推广部','subMainFrame');
		d.add(21,19,'产品部','http://www.baidu.com','产品部','subMainFrame');
		d.add(22,19,'研发部','http://www.baidu.com','研发部','subMainFrame');
		d.add(23,19,'行政部','http://www.baidu.com','行政部','subMainFrame');
		d.add(24,19,'项目支持部','http://www.baidu.com','项目支持部','subMainFrame');
		*/
		document.write(d);
		//-->
	</script>
</div>
</body>
</html>